@extends('layout.admin.master')
@section('content')
<div class="container-fluid mt-5">
    <form action="{{route('admin.config.update',['name'=>$name])}}" method="post">
        @csrf
        <div class="card">
            <div class="card-header">

                <h4 class="card-header-title">
                    图片上传配置
                </h4>
            </div>
            <div class="card-body">
                <div class="form-group">
                    <label for="exampleInputEmail1">大小</label>
                    <div class="input-group mb-3">
                        <input type="text" class="form-control" id="exampleInputEmail1" name="image_size" value="20000">
                        <div class="input-group-append">
                            <span class="input-group-text" id="basic-addon2">b</span>
                        </div>
                    </div>
                    <span class="help-block text-muted ">设置上传文件大小限制,单位b</span>
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">类型</label>
                    <input type="text" class="form-control" id="exampleInputEmail1" name="image_type" value="jpg,png">
                    <span class="help-block text-muted ">设置上传类型，多个以,隔开</span>
                </div>

            </div>
        </div>
        <div class="card">
            <div class="card-header">

                <h4 class="card-header-title">
                    文件上传配置
                </h4>
            </div>
            <div class="card-body">
                <div class="form-group">
                    <label for="exampleInputEmail1">大小</label>
                    <div class="input-group mb-3">
                        <input type="text" class="form-control" id="exampleInputEmail1" name="file_size" value="20000">
                        <div class="input-group-append">
                            <span class="input-group-text" id="basic-addon2">b</span>
                        </div>
                    </div>
                    <span class="help-block text-muted ">设置上传文件大小限制,单位b</span>
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">类型</label>
                    <input type="text" class="form-control" id="exampleInputEmail1" name="file_type" value="zip,rar">
                    <span class="help-block text-muted ">设置上传类型，多个以,隔开</span>
                </div>


            </div>
        </div>
        <button type="submit" class="btn btn-primary">保存数据</button>

    </form>
</div>
@endsection